export const login = {
  name: 'login',
  path: '/login',
  component: () => import('@/views/Login.vue')
  // meta: { title: '登录' }
} // 后台登录

export const home = {
  name: 'home',
  path: '/home',
  redirect: '/welcome',
  component: () => import('@/views/Home.vue'),
  // meta: { title: '后台管理' },
  children: [
    {
      name: 'welcome',
      path: '/welcome',
      component: () => import('@/components/Welcome.vue')
    },
    {
      name: 'auths',
      path: '/auths',
      component: () => import('@/components/Auths.vue') // 权限管理
    },
    {
      name: 'menus',
      path: '/menus',
      component: () => import('@/components/Menus.vue') // 超管菜单管理
    },
    // {
    //   name: 'user',
    //   path: '/user',
    //   component: () => import('@/components/User.vue')
    // },
    {
      name: 'role',
      path: '/role',
      component: () => import('@/components/Role.vue') // 角色管理
    },
    {
      name: 'admins',
      path: '/admins',
      component: () => import('@/components/Admins.vue') // 管理员管理
    },
    {
      name: 'templates',
      path: '/templates',
      component: () => import('@/components/Templates.vue') // 管理员管理
    },
    {
      name: 'banners',
      path: '/banners',
      component: () => import('@/components/Banners.vue') // 轮播图管理
    },
    {
      name: 'org',
      path: '/org',
      component: () => import('@/components/Org.vue') // 组织机构管理
    },
    {
      name: 'driver',
      path: '/driver',
      component: () => import('@/components/Driver.vue') // 运输队管理
    },
    {
      name: 'category',
      path: '/category',
      component: () => import('@/components/Category.vue') // 商品分类管理
    },
    {
      name: 'goods',
      path: '/goods',
      component: () => import('@/components/Goods.vue') // 商品列表管理
    }
  ]
} // 后台主页面
